
using DataAccess;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace KhoaLuan.MainSys.Manager.Controls
{
    public partial class ctManagementResource : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            show_TypeResourcecID();
            show_Org();
        }
        tbResourceType_Proxy pr = new tbResourceType_Proxy();
        tbOrg_Proxy orgpr = new tbOrg_Proxy();
        void show_TypeResourcecID()
        {
            List<tbResourceType> dt = new List<tbResourceType>();
            dt = pr.SelectAlltbResourceType_Proxy();
            this.dllTypeResourcecIDEd.DataSource = dt;
            this.dllTypeResourcecIDEd.DataTextField = "ResourceTypeName";
            this.dllTypeResourcecIDEd.DataValueField = "ResourceTypeID";
            //this.dllTypeResourcecIDEd.SelectedIndex = 1;
            this.dllTypeResourcecIDEd.DataBind();
            dt.Clear();
            dt = null;
        }
        void show_Org()
        {
            List<tbOrg> dt = new List<tbOrg>();
            dt = orgpr.SelectAlltbOrg_Proxy();
            this.dllOrgIDEd.DataSource = dt;
            this.dllOrgIDEd.DataTextField = "NameOrg";
            this.dllOrgIDEd.DataValueField = "OrgID";
            //this.dllTypeResourcecIDEd.SelectedIndex = 1;
            this.dllOrgIDEd.DataBind();
            dt.Clear();
            dt = null;
        }
    }
}
